package com.hikvision.tcmcore.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author :jianghui
 * @date : 2022/10/29 0029 23:49
 */
@RestController
@RequestMapping("/core")
public class TcmCoreController {

    @GetMapping("/receive")
    public String sendWeb() {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss") ;
        return "feign方式调用："+ simpleDateFormat.format(new Date());
    }
}
